package com.up.upzl.biz.domain;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import com.up.upzl.base.domain.BaseDomain;

import lombok.Getter;
import lombok.Setter;

/**
 * 道路
 * 
 * @author joker
 *
 */
@Getter
@Setter
@Entity
public class Road extends BaseDomain {

	private static final long serialVersionUID = 6011482191823079346L;

	/**
	 * 地区名称
	 */
	private String name;
	
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "area_id")
	private Area area;
	
}
